package com.patterns.observer.observable;

import java.util.Observable;
import java.util.Observer;

/**
 * 具体的观察者，使用java自带的观察者类实现 
 * @author huangke
 *
 */
public class ConcreteObserver implements Observer{
	
	private String name;

	public ConcreteObserver(String name) {
		this.name = name;
	}

	public void update(Observable o, Object arg) {
		System.out.println(name + "收到消息:" + arg);
	}

}
